forked from Netflix/go-env
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pull] master from Netflix:master #103
Open
pull
wants to merge
30
commits into
scope-demo:master
Choose a base branch
from
Netflix:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Support type time.Duration
this will split a tag on a || and use the value following the pipes (if any) as a default value if none of the env var options return a value
Add default values
Split default value only into two parts
Update build status location
This lets you unmarshal custom types, like structs or scalars with specific pre-processing steps required.
This lets you marshal custom types, like structs or scalars with specific post-processing steps required. For instance, you could marshal to JSON or base64.
Ensures we support values in addition to pointer values when using the custom marshaler / unmarshaler.
Signed-off-by: Kostadin Plachkov <[email protected]>
Add float32 and float64 support
Add support for custom env marshaling and unmarshaling
Fix tiny typo in test
Add detail for required field error
Add uint uint8 uint16 uint32 uint64 support
* add go.mod * swap travis for github action, update badges in readme * scrap the matrix, use latest
* add slice support * update test * fix default slice values * add additional kv string test * switch to a configurable slice separator * style: fix trailing newline * fix: use tag field for separator --------- Co-authored-by: jimmykodes <[email protected]>
… updates (#28) * [chore] go 1.23.2 upgrade, README fix, docstring additions, & go styling updates Signed-off-by: sheikhrachel <[email protected]> * fix: remove local test file Signed-off-by: sheikhrachel <[email protected]> * fix: 1.23 go version & refactor redundant switch clauses Signed-off-by: Rachel <[email protected]> * fix: remove bin dir Signed-off-by: Rachel <[email protected]> --------- Signed-off-by: sheikhrachel <[email protected]> Signed-off-by: Rachel <[email protected]>
* fix: Marshal() including "default=" tags in EnvSet * chore: added tests * chore: added more tests * chore: added comment to clarify skipping of tag options in Marshal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )